﻿using System;
namespace Kis.Xroad.Eu {
    
    
    [System.SerializableAttribute()]
    public class ExtendedSimpleContent : global::Xtee.Core.Schema.XsdInteger {
        
        public ExtendedSimpleContent(decimal value) : 
                base(value) {
            this.Validate();
        }
        
        public ExtendedSimpleContent(string value) : 
                base(value) {
            this.Validate();
        }
        
        public ExtendedSimpleContent() : 
                base(new decimal()) {
        }
        
        public static bool TryParse(string value, out global::Kis.Xroad.Eu.ExtendedSimpleContent result) {
            try {
                result = new global::Kis.Xroad.Eu.ExtendedSimpleContent(value);
                return true;
            }
            catch (System.Exception ) {
                result = null;
                return false;
            }
        }
        
        public static implicit operator Decimal (ExtendedSimpleContent value) {
            return value.Value;
        }
        
        public static implicit operator ExtendedSimpleContent (decimal value) {
            return new ExtendedSimpleContent(value);
        }
    }
}
